package com.test;

import com.connection.DataConnection;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

public class GuestCheck extends Activity{
	
	private ImageView img;
	private TextView textAmount, textName, textInfo;
	
	DataConnection data = new DataConnection(this);

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.guest);

		data.open();

		textAmount = (TextView) findViewById(R.id.TextAmount);
		textName = (TextView) findViewById(R.id.TextName);
		textInfo = (TextView) findViewById(R.id.InformationText);
		img = (ImageView) findViewById(R.id.image);
		
		if (GuestActivity.proPicture!=null && GuestActivity.proPicture.length() > 0) {
			Bitmap bitmap = BitmapFactory.decodeFile(GuestActivity.proPicture);
			img.setImageBitmap(bitmap);
			textName.setText(GuestActivity.proName);
			textAmount.setText(GuestActivity.proPrice);
			textInfo.setText(GuestActivity.proIntroduction);
			
		}
		
	}

}
